package com.lc.demo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: sakila
 * @Date: 2022/03/06/23:30
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_goodsinfo")
public class Goods implements Serializable {

    @Id
    private Integer Id;

    private String title;
    private Double price;
    private Integer sales;
    private String coverUrl;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date upDate;

}
